package com.netease.pris.activity;

import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Toast;
import com.netease.pris.activity.a.p;
import com.netease.pris.activity.view.c;
import com.netease.pris.atom.aa;
import com.netease.pris.atom.o;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

class fs extends com.netease.pris.b
{
  fs(CustomListViewActivity paramCustomListViewActivity)
  {
  }

  public void a()
  {
    CustomListViewActivity.a(this.a, false);
    CustomListViewActivity.o(this.a);
  }

  public void a(int paramInt1, int paramInt2, com.netease.pris.atom.b paramb, String paramString, boolean paramBoolean)
  {
    if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt1)))
    {
      CustomListViewActivity.p(this.a).remove(new Integer(paramInt1));
      CustomListViewActivity.b(this.a, false);
      CustomListViewActivity.o(this.a);
      CustomListViewActivity.a(this.a, false);
      dc.a(CustomListViewActivity.d(this.a), paramInt2);
    }
  }

  public void a(int paramInt, com.netease.pris.atom.b paramb, d paramd, boolean paramBoolean)
  {
    try
    {
      if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt)))
      {
        CustomListViewActivity.p(this.a).remove(new Integer(paramInt));
        CustomListViewActivity.b(this.a, false);
        CustomListViewActivity.a(this.a, false);
        CustomListViewActivity.o(this.a);
        if (CustomListViewActivity.q(this.a) != null)
        {
          CustomListViewActivity.q(this.a).removeFooterView(CustomListViewActivity.r(this.a));
          if ((paramd != null) && (paramd.h != null))
          {
            CustomListViewActivity.a(this.a, paramd, paramBoolean);
            CustomListViewActivity.a(this.a, paramd);
          }
        }
      }
    }
    catch (NullPointerException localNullPointerException)
    {
      localNullPointerException.printStackTrace();
    }
    finally
    {
    }
  }

  public void b(int paramInt, d paramd)
  {
    try
    {
      if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt)))
      {
        CustomListViewActivity.p(this.a).remove(new Integer(paramInt));
        if (paramd.j.size() <= 0)
          break label79;
        Toast.makeText(CustomListViewActivity.d(this.a), 2131361911, 0).show();
      }
      while (paramd.j.size() <= 0)
      {
        break label299;
        label79: if (paramd.i.size() <= 0)
          continue;
        Toast.makeText(CustomListViewActivity.d(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
      }
    }
    catch (NullPointerException localNullPointerException)
    {
      localNullPointerException.printStackTrace();
    }
    c localc1 = new c();
    localc1.a = ((o)paramd.j.getFirst()).a();
    Button localButton = (Button)CustomListViewActivity.q(this.a).findViewWithTag(localc1);
    if (localButton != null)
    {
      localButton.setText(2131361909);
      localButton.setCompoundDrawablesWithIntrinsicBounds(2130837547, 0, 0, 0);
      localc1.b = ((c)localButton.getTag()).b;
    }
    c localc2 = new c();
    localc1.a += "mark";
    ImageView localImageView = (ImageView)CustomListViewActivity.q(this.a).findViewWithTag(localc2);
    label299: label300: if (localImageView != null)
    {
      localImageView.setVisibility(8);
      break label300;
    }
    while (true)
    {
      CustomListViewActivity.h(this.a).b(localc1.b).a(aa.b);
      return;
      if (localButton != null)
        continue;
      if (localImageView == null)
        break;
    }
  }

  public void d(int paramInt1, int paramInt2, String paramString)
  {
    if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt1)))
    {
      CustomListViewActivity.p(this.a).remove(new Integer(paramInt1));
      dc.a(CustomListViewActivity.d(this.a), paramInt2);
    }
  }

  public void e(int paramInt1, int paramInt2, String paramString)
  {
    if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt1)))
    {
      CustomListViewActivity.p(this.a).remove(new Integer(paramInt1));
      dc.a(CustomListViewActivity.d(this.a), paramInt2);
    }
  }

  public void f(int paramInt, d paramd)
  {
    try
    {
      if (CustomListViewActivity.p(this.a).contains(new Integer(paramInt)))
      {
        CustomListViewActivity.p(this.a).remove(new Integer(paramInt));
        if (paramd.h.size() <= 0)
          break label79;
        Toast.makeText(CustomListViewActivity.d(this.a), 2131361910, 0).show();
      }
      while (paramd.h.size() <= 0)
      {
        break label298;
        label79: if (paramd.i.size() <= 0)
          continue;
        Toast.makeText(CustomListViewActivity.d(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
      }
    }
    catch (NullPointerException localNullPointerException)
    {
      localNullPointerException.printStackTrace();
    }
    c localc1 = new c();
    localc1.a = ((u)paramd.h.getFirst()).V();
    Button localButton = (Button)CustomListViewActivity.q(this.a).findViewWithTag(localc1);
    if (localButton != null)
    {
      localButton.setText(2131361879);
      localButton.setCompoundDrawablesWithIntrinsicBounds(2130837548, 0, 0, 0);
      localc1.b = ((c)localButton.getTag()).b;
    }
    c localc2 = new c();
    localc1.a += "mark";
    ImageView localImageView = (ImageView)CustomListViewActivity.q(this.a).findViewWithTag(localc2);
    label298: label299: if (localImageView != null)
    {
      localImageView.setVisibility(0);
      break label299;
    }
    while (true)
    {
      CustomListViewActivity.h(this.a).b(localc1.b).a(aa.a);
      return;
      if (localButton != null)
        continue;
      if (localImageView == null)
        break;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.fs
 * JD-Core Version:    0.6.0
 */